package com.ruoyi.web.controller.cockpit;

import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.common.core.domain.entity.SysUser;
import com.ruoyi.system.service.ISysUserService;
import io.swagger.annotations.Api;
import io.swagger.annotations.ApiImplicitParam;
import io.swagger.annotations.ApiOperation;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@Api(tags = "(驾驶舱)首页页面接口")
@RestController
@RequestMapping("/api/v1")
public class CockpitHomePageController {

    @Autowired
    private ISysUserService userService;

    @ApiOperation("测试接口-返回用户列表")
    @ApiImplicitParam(name = "token", value = "请求头token", required = true, dataType = "String", paramType = "header", dataTypeClass = String.class)
    @GetMapping("/homePage/userList")
    public AjaxResult userList() {
        return AjaxResult.success(userService.selectUserList(new SysUser()));
    }

}
